package eszkola;

import java.math.BigDecimal;

public class Ktos extends Person {
	private Integer[] ada;
	private Integer ada1;

	public Integer getAda1() {
		return ada1;
	}

	public void setAda1(Integer ada1) {
		this.ada1 = ada1;
	}

	public Ktos(BigDecimal uid, String name, String surname, Integer[] ada) {
		super(uid, name, surname);
		setAda(ada);

	}

	public Integer[] getAda() {
		return ada;
	}

	public void setAda(Integer[] ada) {
		this.ada = ada;
	}

	protected Integer getAv() {
		Integer ww = 0;
		ada[0]=45;
		for (Integer kk : ada) {
			ww = ww + kk;
		}
		System.out.println(ww);
		return ww;

	}

}
